package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;

import com.billing.model.entity.TRoleMembers;

public interface RoleMembersMapper {
	/**
	 * 新增角色
	 * @param roleMembers
	 * @return
	 */
	public int insert(TRoleMembers roleMembers);


	/**
	 * 根据公司id查询角色
	 * @param parseInt
	 * @return
	 */
	public List<TRoleMembers> getRoleById(@Param("id")int id,@Param("name")String name,@Param("status")int status,@Param("pageSize")int pageSize,
			@Param("currentPage")int currentPage);

	/**
	 * 查询角色条数
	 * @param parseInt
	 * @return
	 */
	public int getRoleNum(@Param("id")int id,@Param("name")String name,@Param("status")int status);

	/**
	 * 根据id获取role
	 * @param id
	 * @return
	 */
	public TRoleMembers getRole(String id);

	/**
	 * 更新role
	 * @param roleMembers
	 * @return
	 */
	public int updateRole(TRoleMembers roleMembers);


}
